NotEmptyCollection

@SinceKotoolsTypes(version = "4.1")
interface NotEmptyCollection<out E>

Representation of collections containing at least one element of type E.

Functions

Link copied to clipboard
abstract override fun toString(): String

Returns the string representation of this collection.

Properties

Link copied to clipboard
abstract val head: E

The first element of this collection.

Link copied to clipboard

The size of this collection.

Link copied to clipboard

All elements of this collection except the first one.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
@SinceKotoolsTypes(version = "4.1")
val NotEmptyCollection<*>?.sizeOrZero: PositiveInt

Returns the size of this collection, or returns ZeroInt if this collection is null.